import React from 'react';
import { connect } from 'dva';
import styles from './courseDetail.css';
import CourseDetailComponent from '../../components/Class/CourseDetail'

function courseDetail(props,payload) {
  let dispatch = props.dispatch;
  let courseId = window.location;
  // console.log("-----------props",props)
  // console.log("----------window.location",window.location)
  // console.log("-----------payload",payload)
  return (
    <div className={styles.normal}>
      <CourseDetailComponent {...props}/>
    </div>
  );
}

function mapStateToProps(state) {
  if (state != undefined) {
    return {
      courseDetail:state.courseDetail
    };
  }
}


export default connect(mapStateToProps)(courseDetail);
